package com.yingpai.fitness.adpter.food;

import android.support.annotation.LayoutRes;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yingpai.fitness.R;
import com.yingpai.fitness.dvp_2_0.main.activity.fitness.DietCollocationActivity;
import com.yingpai.fitness.entity.food.MaterialBean;

/**
=================================================
*作者:国斌
*邮箱: remebermelula@aliyun.com
*时间: 2018/4/24
*类名:  DieCollocationParentRecyclerAdapter .java
*版本: V 1.0
*描述:食材 适配器
 * {@link DietCollocationActivity ,MaterialBean}
===============================================
*/


public class DieCollocationDetailMaterialRecyclerAdapter extends BaseQuickAdapter<MaterialBean.MapData.ComponentListData,BaseViewHolder> {




    public DieCollocationDetailMaterialRecyclerAdapter(@LayoutRes int layoutResId) {
        super(layoutResId);


    }

    @Override
    protected void convert(BaseViewHolder helper, MaterialBean.MapData.ComponentListData item) {
        TextView die_detail_material_food_name=helper.getView(R.id.die_detail_material_food_name);//食物名称

        die_detail_material_food_name.setText(item.getPropertyName());


        TextView die_detail_material_food_count=helper.getView(R.id.die_detail_material_food_count);

        die_detail_material_food_count.setText(item.getPropertyAmount());
    }




}
